package com.mark.web.sys.entity.from;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Description: 添加角色的表单验证
 * @Author: Mark
 * @CreateDate: 2019/1/13 18:53
 * @Version: 2.0
 * @Copyright : 豆浆油条个人非正式工作室
 */
@Data
@ApiModel(value = "角色新增表单")
public class RoleFrom {

    /**
     * 角色名
     */
    @ApiModelProperty(value = "角色名",required = true)
    @NotBlank
    private String name;

    /**
     * 权重
     */
    @ApiModelProperty(value = "权重")
    private Short priority;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述",required = true)
    private String description;
}
